package com.pureut.system.api;

import com.pureut.common.core.constant.ServiceNameConstants;
import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.system.api.factory.RemoteTheOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 订单服务
 * @Param
 * @Date 22-12--6
 * @Author hl
 **/
@FeignClient(contextId = "remoteTheOrderService", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = RemoteTheOrderFallbackFactory.class)
public interface RemoteTheOrderService {

    /**
     * 根据id查询供应商名称
     *
     * @param
     * @param
     * @return 结果
     */
    @GetMapping("/view/{id}")
    public AjaxResult view(@PathVariable("id") Integer id);

}
